<%--
  Created by IntelliJ IDEA.
  User: 联想
  Date: 2020/2/23
  Time: 17:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/layui/css/layui.css" media="all">
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->

</head>
<body>
<blockquote class="layui-elem-quote layui-text">
    信息展示
</blockquote>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>更改活动</legend>
</fieldset>
<form class="layui-form" action="${pageContext.request.contextPath}/teacher/alter" method="get">
    <input name="teacherNo" value="${activity.getTeacherNo()}" type="hidden">
    <input name="teacherName" value="${activity.getTeacherName()}" type="hidden">
    <input name="activityReleaseTime" value="${activity.getActivityReleaseTime()}" type="hidden">
    <input name="activityNo" value="${activity.getActivityNo()}" type="hidden">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">活动编号</label>
            <div class="layui-input-inline">
                <input type="tel" value="${activity.getActivityNo()}" readonly="true" class="layui-input">
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">活动名称</label>
            <div class="layui-input-inline">
                <input type="text" value="${activity.getActivityName()}" name="activityName" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">活动时间</label>
                <div class="layui-input-inline">
                    <input type="text" value="${activity.getActivityTime()}" name="activityTime" id="date" lay-verify="date" placeholder="yyyy-MM-dd"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">活动分值</label>
            <div class="layui-input-inline">
                <input type="tel" value="${activity.getActivityScore()}" name="activityScore" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">持续时间</label>
        <div class="layui-input-inline">
            <input type="tel" value="${activity.getActivityStudyTime()}" name="activityStudyTime" class="layui-input">
        </div>

        <div class="layui-inline">
            <label class="layui-form-label">所需人数</label>
            <div class="layui-input-inline">
                <input type="tel" value="${activity.getActivityPeopleNumber()}" name="activityPeopleNumber" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>

<script src="${pageContext.request.contextPath}/resources/layui/layui.js" charset="utf-8"></script>

<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date'
        });
        laydate.render({
            elem: '#date1'
        });

    });
</script>


</body>
</html>

